package com.example.applyforaid.entity;

import java.util.ArrayList;
import java.util.List;

public class ManagerUserExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ManagerUserExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andManagerUidIsNull() {
            addCriterion("manager_uid is null");
            return (Criteria) this;
        }

        public Criteria andManagerUidIsNotNull() {
            addCriterion("manager_uid is not null");
            return (Criteria) this;
        }

        public Criteria andManagerUidEqualTo(String value) {
            addCriterion("manager_uid =", value, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerUidNotEqualTo(String value) {
            addCriterion("manager_uid <>", value, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerUidGreaterThan(String value) {
            addCriterion("manager_uid >", value, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerUidGreaterThanOrEqualTo(String value) {
            addCriterion("manager_uid >=", value, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerUidLessThan(String value) {
            addCriterion("manager_uid <", value, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerUidLessThanOrEqualTo(String value) {
            addCriterion("manager_uid <=", value, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerUidLike(String value) {
            addCriterion("manager_uid like", value, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerUidNotLike(String value) {
            addCriterion("manager_uid not like", value, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerUidIn(List<String> values) {
            addCriterion("manager_uid in", values, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerUidNotIn(List<String> values) {
            addCriterion("manager_uid not in", values, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerUidBetween(String value1, String value2) {
            addCriterion("manager_uid between", value1, value2, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerUidNotBetween(String value1, String value2) {
            addCriterion("manager_uid not between", value1, value2, "managerUid");
            return (Criteria) this;
        }

        public Criteria andManagerKeyIsNull() {
            addCriterion("manager_key is null");
            return (Criteria) this;
        }

        public Criteria andManagerKeyIsNotNull() {
            addCriterion("manager_key is not null");
            return (Criteria) this;
        }

        public Criteria andManagerKeyEqualTo(String value) {
            addCriterion("manager_key =", value, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerKeyNotEqualTo(String value) {
            addCriterion("manager_key <>", value, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerKeyGreaterThan(String value) {
            addCriterion("manager_key >", value, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerKeyGreaterThanOrEqualTo(String value) {
            addCriterion("manager_key >=", value, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerKeyLessThan(String value) {
            addCriterion("manager_key <", value, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerKeyLessThanOrEqualTo(String value) {
            addCriterion("manager_key <=", value, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerKeyLike(String value) {
            addCriterion("manager_key like", value, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerKeyNotLike(String value) {
            addCriterion("manager_key not like", value, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerKeyIn(List<String> values) {
            addCriterion("manager_key in", values, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerKeyNotIn(List<String> values) {
            addCriterion("manager_key not in", values, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerKeyBetween(String value1, String value2) {
            addCriterion("manager_key between", value1, value2, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerKeyNotBetween(String value1, String value2) {
            addCriterion("manager_key not between", value1, value2, "managerKey");
            return (Criteria) this;
        }

        public Criteria andManagerRoleIsNull() {
            addCriterion("manager_role is null");
            return (Criteria) this;
        }

        public Criteria andManagerRoleIsNotNull() {
            addCriterion("manager_role is not null");
            return (Criteria) this;
        }

        public Criteria andManagerRoleEqualTo(Integer value) {
            addCriterion("manager_role =", value, "managerRole");
            return (Criteria) this;
        }

        public Criteria andManagerRoleNotEqualTo(Integer value) {
            addCriterion("manager_role <>", value, "managerRole");
            return (Criteria) this;
        }

        public Criteria andManagerRoleGreaterThan(Integer value) {
            addCriterion("manager_role >", value, "managerRole");
            return (Criteria) this;
        }

        public Criteria andManagerRoleGreaterThanOrEqualTo(Integer value) {
            addCriterion("manager_role >=", value, "managerRole");
            return (Criteria) this;
        }

        public Criteria andManagerRoleLessThan(Integer value) {
            addCriterion("manager_role <", value, "managerRole");
            return (Criteria) this;
        }

        public Criteria andManagerRoleLessThanOrEqualTo(Integer value) {
            addCriterion("manager_role <=", value, "managerRole");
            return (Criteria) this;
        }

        public Criteria andManagerRoleIn(List<Integer> values) {
            addCriterion("manager_role in", values, "managerRole");
            return (Criteria) this;
        }

        public Criteria andManagerRoleNotIn(List<Integer> values) {
            addCriterion("manager_role not in", values, "managerRole");
            return (Criteria) this;
        }

        public Criteria andManagerRoleBetween(Integer value1, Integer value2) {
            addCriterion("manager_role between", value1, value2, "managerRole");
            return (Criteria) this;
        }

        public Criteria andManagerRoleNotBetween(Integer value1, Integer value2) {
            addCriterion("manager_role not between", value1, value2, "managerRole");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyIsNull() {
            addCriterion("manager_academy is null");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyIsNotNull() {
            addCriterion("manager_academy is not null");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyEqualTo(String value) {
            addCriterion("manager_academy =", value, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyNotEqualTo(String value) {
            addCriterion("manager_academy <>", value, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyGreaterThan(String value) {
            addCriterion("manager_academy >", value, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyGreaterThanOrEqualTo(String value) {
            addCriterion("manager_academy >=", value, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyLessThan(String value) {
            addCriterion("manager_academy <", value, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyLessThanOrEqualTo(String value) {
            addCriterion("manager_academy <=", value, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyLike(String value) {
            addCriterion("manager_academy like", value, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyNotLike(String value) {
            addCriterion("manager_academy not like", value, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyIn(List<String> values) {
            addCriterion("manager_academy in", values, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyNotIn(List<String> values) {
            addCriterion("manager_academy not in", values, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyBetween(String value1, String value2) {
            addCriterion("manager_academy between", value1, value2, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerAcademyNotBetween(String value1, String value2) {
            addCriterion("manager_academy not between", value1, value2, "managerAcademy");
            return (Criteria) this;
        }

        public Criteria andManagerNameIsNull() {
            addCriterion("manager_name is null");
            return (Criteria) this;
        }

        public Criteria andManagerNameIsNotNull() {
            addCriterion("manager_name is not null");
            return (Criteria) this;
        }

        public Criteria andManagerNameEqualTo(String value) {
            addCriterion("manager_name =", value, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerNameNotEqualTo(String value) {
            addCriterion("manager_name <>", value, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerNameGreaterThan(String value) {
            addCriterion("manager_name >", value, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerNameGreaterThanOrEqualTo(String value) {
            addCriterion("manager_name >=", value, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerNameLessThan(String value) {
            addCriterion("manager_name <", value, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerNameLessThanOrEqualTo(String value) {
            addCriterion("manager_name <=", value, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerNameLike(String value) {
            addCriterion("manager_name like", value, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerNameNotLike(String value) {
            addCriterion("manager_name not like", value, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerNameIn(List<String> values) {
            addCriterion("manager_name in", values, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerNameNotIn(List<String> values) {
            addCriterion("manager_name not in", values, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerNameBetween(String value1, String value2) {
            addCriterion("manager_name between", value1, value2, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerNameNotBetween(String value1, String value2) {
            addCriterion("manager_name not between", value1, value2, "managerName");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedIsNull() {
            addCriterion("manager_deleted is null");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedIsNotNull() {
            addCriterion("manager_deleted is not null");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedEqualTo(Boolean value) {
            addCriterion("manager_deleted =", value, "managerDeleted");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedNotEqualTo(Boolean value) {
            addCriterion("manager_deleted <>", value, "managerDeleted");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedGreaterThan(Boolean value) {
            addCriterion("manager_deleted >", value, "managerDeleted");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("manager_deleted >=", value, "managerDeleted");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedLessThan(Boolean value) {
            addCriterion("manager_deleted <", value, "managerDeleted");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("manager_deleted <=", value, "managerDeleted");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedIn(List<Boolean> values) {
            addCriterion("manager_deleted in", values, "managerDeleted");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedNotIn(List<Boolean> values) {
            addCriterion("manager_deleted not in", values, "managerDeleted");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("manager_deleted between", value1, value2, "managerDeleted");
            return (Criteria) this;
        }

        public Criteria andManagerDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("manager_deleted not between", value1, value2, "managerDeleted");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}